async function importAllIcons() {
  const icons = []

  const files = await import.meta.glob('../../icons/svg/*.svg')

  for (const path in files) {
    const iconName = path.match(/\/([^/]+)\.svg$/)?.[1]
    icons.push(iconName)
  }

  console.log(icons);
  return icons
}

const icons = await importAllIcons()

export default icons
